package org.s3.project.houservice.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.s3.project.entity.Merchant;
import org.s3.project.houservice.HouMerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author fy
 * @version 1.0
 * @Description
 * @date 2025/2/17 14:38
 */
@Service
public class HouMerchantServiceImpl extends ServiceImpl<org.s3.project.mapper.HouMerchantMapper, Merchant> implements HouMerchantService {
@Autowired
private org.s3.project.mapper.HouMerchantMapper houMerchantMapper;
    //   后台分页展示商家 管理员专用    加模糊查询商家名      加查询创建时间区间
    @Override
    public List<Merchant> selectMerchant(String name, String create_time, String update_time) {
        return    houMerchantMapper.selectMerchant(name, create_time, update_time);
    }
      //批量删除商家 后台
    @Override
    public Boolean deleteMerchants(List<String> ids) {
        return houMerchantMapper.deleteMerchants(ids);
    }

  //修改时间
    @Override
    public Boolean updateTime(long id) {
        return houMerchantMapper.updateTime(id);
    }
    //修改商家状态解封或者禁用
    @Override
    public Boolean updateMerchantState(long id, String status) {
        return houMerchantMapper.updateMerchantState(id, status);
    }


}
